<div ng-include="'tpl/base/web/header.html'"></div>
<div ng-include="'tpl/base/web/search.html'"></div>

<div ng-controller="leftTab6_1" id="leftTab6_1" class="clearfix">
    <div ng-include="'tpl/base/web/leftTab.html'"></div>
    <div class="interface fl clearfix">

        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a onclick="return false;" href="#home" aria-controls="home"
                                                      role="tab" data-toggle="tab">模板修改</a></li>

        </ul>

        <!-- Tab panes -->
        <div class="tab-content">
            <!--模板修改-->
            <div role="tabpanel" class="tab-pane active" id="home">
                <div class="mask" ng-show="layerOutShow"></div>
                <div class="proMsg">
                    <h3>商户信息</h3>
                    <table>
                        <tr>
                            <td><span style="display: inline-block;min-width: 100px;">商户名称：</span>{{modelMsg.storeName}}
                            </td>
                        </tr>
                        <tr>
                            <td><span style="display: inline-block;min-width: 100px;">店主名称：</span>{{modelMsg.name}}</td>
                        </tr>
                        <tr>
                            <td><span style="display: inline-block;min-width: 100px;">联系方式：</span>{{modelMsg.phoneNum}}
                            </td>
                        </tr>
                        <tr>
                            <td><span style="display: inline-block;min-width: 100px;">地址：</span>{{modelMsg.province +
                                modelMsg.city + modelMsg.area + modelMsg.address}}
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="material">
                    <ul class="tit">
                        <li><h3>耗材初始化</h3></li>
                        <!--<li>-->
                        <!--<input type="text">-->
                        <!--<span></span>-->
                        <!--</li>-->

                        <li class="deleteM fr" ng-click="deleteTableDataBtn();"><img src="img/icon/delete.png" alt="">删除
                        </li>
                        <li class="addM fr" ng-click="createNewItemBtn();">
                            <img src="img/icon/addMer.png" alt="">新增材料
                        </li>
                    </ul>

                    <table>
                        <tr class="th">
                            <td class="input"><input type="checkbox" ng-model="select_all" ng-change="selectAll()"></td>
                            <td class="th">耗材品牌</td>
                            <td class="th">耗材类型</td>
                            <td class="th">耗材名称</td>
                            <td class="th">初始化数量</td>
                            <td class="th">操作</td>
                        </tr>

                        <tr ng-repeat="item in tableData" on-finish-render-filters>
                            <td class="input"><input type="checkbox" ng-model="item.checked"
                                                     ng-change="selectOne($event)"></td>
                            <td>{{item.itemBrandCode}}</td>
                            <td>{{item.itemCategoryCode}}</td>
                            <td>{{item.itemCode}}</td>
                            <td ng-class="{true:'tdShow',false:'tdHide'}[item.flag == 0]">{{item.allocatedQty}}</td>
                            <td ng-class="{true:'tdShow',false:'tdHide'}[item.flag == 1]"><span class="subQty" ng-click="subQty();">-</span><span
                                    class="Qtynum">{{item.allocatedQty}}</span><span class="addQty"
                                                                                     ng-click="addQty();">+</span></td>
                            <td ng-class="{true:'tdShow',false:'tdHide'}[item.flag == 0]" ng-click="changeBtnClick();"
                                style="color:blue;text-decoration: underline">修改数量
                            </td>
                            <td ng-class="{true:'tdShow',false:'tdHide'}[item.flag == 1]" ng-click="saveBtnClick();"
                                style="color:blue;text-decoration: underline"><span>保存</span></td>
                        </tr>


                    </table>

                    <!--<div class="addMaterial clearfix">-->
                    <!--<div class="addImg"><img src="img/icon/add_1.png" alt=""></div>-->
                    <!--<div class="chooseBox">-->
                    <!--<select name="" id=""></select>-->
                    <!--<select name="" id=""></select>-->
                    <!--<input type="text">-->
                    <!--<input type="text">-->
                    <!--</div>-->

                    <!--</div>-->

                    <div class="home_layerOut" ng-show="layerOutShow">
                        <h3>新增耗材<img src="img/icon/cha.png" alt="" ng-click="closeLay();"></h3>
                        <div>

                            <div>
                                <span style="min-width: 95px;display: inline-block;">耗材品牌：</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;"
                                        name="select1" ng-options="v.code as v.code for v in meterialBrand"
                                        ng-model="meterialBrandCode" ng-change="meterialBrandChange();">
                                    <option value="">请选择耗材品牌</option>
                                </select>
                            </div>

                            <div>
                                <span style="min-width: 95px;display: inline-block;">耗材类型：</span>
                                <select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;"
                                        name="select2" ng-options="v.code as v.code for v in meterialClassify"
                                        ng-model="meterialClassifyCode" ng-change="meterialClassifyChange();">
                                    <option value="">请选择耗材类型</option>
                                </select>
                            </div>


                            <div>
                                <span style="min-width: 95px;display: inline-block;">耗材名称：</span>
                                <!--<select style="width:70%;box-sizing: border-box;height:30px;text-indent: 10px;"-->
                                        <!--name="select3" ng-options="v.id as v.code for v in meterialName"-->
                                        <!--ng-model="meterialNameCode" ng-change="meterialChange();">-->
                                    <!--<option value="">请选择耗材名称</option>-->
                                <!--</select>-->
                                <input style="width:70%;margin-bottom:0;box-sizing: border-box;height:30px;text-indent: 10px;" type="text" ng-model="creatNewItemMsg.itemCode">
                            </div>

                            <div>
                                <span style="min-width: 95px;display: inline-block;">数量：</span>
                                <input ng-model="creatNewItemMsg.allocatedQty"
                                       style="margin-bottom:0;width:70%;box-sizing: border-box;height:30px;text-indent: 10px;"
                                       type="text">
                            </div>

                            <input type="button" value="新增" ng-click="createNewItemSub();">

                        </div>

                    </div>

                    <div class="paging" >
                        <div class="clearfix box-between">
                            <!--<div class="branches fl">-->
                            <!--<select name="" id="">-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">1</option>-->
                            <!--<option value="">4</option>-->
                            <!--</select>-->
                            <!--<span>条 / 页</span>-->
                            <!--</div>-->

                            <div class="page fl">
                                <span class="fl pageTurn prev" ng-click="firstPageBtn();">首页</span>
                                <span class="fl pageTurn prev" ng-click="prevPageBtn();">上一页</span>
                                <!--<ul class="fl">-->
                                <!--<li>1</li>-->
                                <!--<li>2</li>-->
                                <!--<li>3</li>-->
                                <!--<li>4</li>-->
                                <!--<li>5</li>-->
                                <!--<li>6</li>-->
                                <!--<li>7</li>-->
                                <!--<li>8</li>-->

                                <!--</ul>-->
                                <div class="pageTo fl">
                                    <p>转到 <input type="text" ng-model="page1" ng-keyup="myKeyup13($event)"> 页</p>
                                </div>
                                <span class="fl pageTurn next" ng-click="nextPageBtn();">下一页</span>
                                <span class="fl pageTurn next toLast" ng-click="lastPageBtn();">尾页</span>
                                <p class="fl">共 <span>{{pageMsg.totalPages}}</span> 页  /  <span>{{pageMsg.totalElements}}</span> 条数据</p>
                            </div>
                        </div>


                    </div>

                </div>


            </div>

        </div>

    </div>

</div>
<div ng-include="'tpl/base/web/bottom.html'"></div>
